@import '@/app/styles/variables';

.promo {
  display: flex;
  width: 100%;
  padding: 56px;
  align-items: center;
  gap: 32px;
  border-radius: 32px;
  background: var(--Simple-Gray-Morning, #f3f3f3);
  overflow: hidden;
  position: relative;
}

.block {
  display: flex;
  max-width: 408px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
}

.image {
  position: absolute;
  right: 56px;
  bottom: 0;
  width: 50%;
  aspect-ratio: 558 / 256;
  display: flex;
  height: auto;
  img,
  svg {
    height: 100%;
    width: 100%;
  }
}

.text {
  color: var(--Simple-Night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 150% */
  align-items: center;
  width: 100%;
  word-break: break-word;
}

.button {
  display: flex;
  padding: 14px 56px 16px 56px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  color: var(--Simple-Night, #000);
  text-align: center;

  /* iPhone/Headline/H3 */
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 130% */
}

.icons {
  flex-wrap: wrap;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.apple > svg {
  position: relative;
  top: -1.8px;
}

.link {
  padding: 15px;
  border-radius: 20px;
  font-size: 32px;
  border-width: 1px;
  &:hover {
    border-radius: 20px;
    border: 1px solid var(--Simple-Gray-Day, #e1e1e1);
    background: var(--Simple-Gray-Day, #e1e1e1);
  }
}

.desktop,
.desktop_promo1 {
  height: 256px;
  display: flex !important;
  margin: 0 auto;
  width: 100% !important;
}
.mobile,
.mobile_promo1 {
  display: none;
}
.desktop,
.desktop_promo1,
.mobile_promo1,
.mobile {
  position: relative;
  width: auto;
  height: 100%;
}

@include media(lg) {
  .desktop_promo1 {
    display: none !important;
  }
  .mobile_promo1 {
    display: flex !important;
  }
  .promo {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    padding: 56px 56px 0;
    align-items: flex-end;
    gap: 32px;
    border-radius: 32px;
    background: var(--Simple-Gray-Morning, #f3f3f3);
    overflow: hidden;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
  }

  .block {
    all: unset;
    box-sizing: border-box;
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .image {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    img,
    svg {
      height: 100%;
      width: 100%;
    }

    svg {
      margin: auto;
    }
  }
  .text {
    text-align: center;
  }
}

@include media(sm) {
  .desktop {
    display: none !important;
  }
  .mobile {
    display: flex;
  }
  .promo {
    display: flex;
    width: 100%;
    padding: 24px 24px 0 24px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    height: unset;

    border-radius: 16px;
    background: var(--Simple-Gray-Morning, #f3f3f3);
  }
  .button {
    display: flex;
    height: 48px;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 22px; /* 137.5% */
  }
  .block {
    gap: 16px;
    font-size: 16px;
    line-height: 22px; /* 137.5% */
    max-width: unset;
    align-items: center;
    width: unset;
    bottom: 0;
  }
  .text {
    text-align: center;
    font-size: 16px;
    line-height: 22px; /* 137.5% */
  }
  .image {
    bottom: -64px;

    margin: 0 auto;
    flex: 1;
    position: static;
    display: flex;
  }
}

@include media(xxs) {
  .icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .image {
    svg {
      width: unset;
    }
  }
}
